package top.leyi.IService;

import top.leyi.entity.user.User;
import top.leyi.exception.ClassNotSetException;
import top.leyi.exception.NotSuchUserIdException;
import top.leyi.exception.TokenException;

public interface IUserService {
    /**
     * @desc 获取个人的信息
     * @param token
     * @return
     */
    User getPersonInfo(String token)throws TokenException;

    User updataPersonInfo(  String token , User user )throws TokenException, ClassNotSetException;

    /**
     * @desc 获取其他人的信息
     * @param token
     * @return
     */
    User getOtherPersonInfo(String token, User user)throws NotSuchUserIdException, TokenException;
}

